package spring.cloud.tasks.client.item_task_processor;

import spring.cloud.tasks.client.ItemTaskWorker;
import spring.cloud.tasks.common.utils.Uuids;

public class ItemTaskThreadManager {


    public static void threadMaintain(ItemTaskWorker itemTaskWorker) {
        String threadId = ItemTaskThreadManager.class.getName() + "-" + Uuids.getUuid();
        TaskItemsReAssignThread taskItemsReAssignThread = new TaskItemsReAssignThread(threadId, itemTaskWorker);
        taskItemsReAssignThread.setDaemon(true);
        taskItemsReAssignThread.start();
    }
}
